package hhm.android.myframe.room

import androidx.room.*

@Dao
interface DataBaseDao {
    @Update
    fun updateBaby(list: List<BabyModel>)

    @Insert
    fun addBaby(list: List<BabyModel>)

    @Delete
    fun deleteBaby(list: List<BabyModel>)

    @Query("DELETE FROM BABYMODEL")
    fun clearBaby()

    @Query("SELECT * FROM BABYMODEL ORDER BY ID DESC")
    fun queryBaby(): List<BabyModel>
}